builder.component(){
	current.servers.add(protocol.HTTP, 8182)
	current.clients.add(protocol.FILE)
	current.clients.add(protocol.HTTP)
	current.clients.add(protocol.HTTPS)
	current.clients.add(protocol.CLAP)
	
	application(uri:noteApp){
		router{
			//resource of note collection
			//type indicating the representation type.
			resource(uri:"/notes.{type}", ofBean:"notesResources")				
			// create a new note
			resource(uri:"/note", ofBean:"noteResource")
			// operate an existing note
			resource(uri:"/note/{noteid}.{type}",ofBean:"noteResource")
			// note outline
			resource(uri:"/note/{noteid}/outline.{type}", 
					ofBean:"noteOutlineResource")
		}
	}
}